import {createRouter,createWebHashHistory} from 'vue-router'
import login from '@renderer/views/login.vue'
const router = createRouter({
    history:createWebHashHistory(),
    routes:[
       
        {
            path:'/',
            redirect:'login',
        
        },
        {
            path:'/login',
            name:'login',
            component:login
        },
        {
            path:'/index',
            component:()=>import('@renderer/views/index.vue')
        },
        {
            path:'/shopsale',
            name:'shopsale',
            component:()=>import('@renderer/views/shopsale.vue'),
            meta:{
                title:'店铺销售'
            }
        },
        {
            path:'/transferquery',
            name:'transferquery',
            component:()=>import('@renderer/views/transferquery.vue'),
            meta:{
                title:'库存调拨'
            }
        },
        {
            path:'/newtransfer',
            name:'newtransfer',
            component:()=>import('@renderer/views/newtransfer.vue'),
            meta:{
                title:'调拨出库'
            }
        },
        {
            path:'/transferdesc',
            name:'transferdesc',
            component:()=>import('@renderer/views/transferdesc.vue'),
            meta:{
                title:'调拨单详情'
            }
        },
        {
            path:'/orderquery',
            name:'orderquery',
            component:()=>import('@renderer/views/orderquery.vue'),
            meta:{
                title:'订单查询'
            }
        },
        {
            path:'/rechargequery',
            name:'rechargequery',
            component:()=>import('@renderer/views/rechargequery.vue'),
            meta:{
                title:'充值查询'
            }
        },
        {
            path:'/checkquery',
            name:'checkquery',
            component:()=>import('@renderer/views/checkquery.vue'),
            meta:{
                title:'库存盘点'
            }
        },
        {
            path:'/newcheck',
            name:'newcheck',
            component:()=>import('@renderer/views/newcheck.vue'),
            meta:{
                title:'盘点'
            }
        },
        {
            path:'/systemconfig',
            name:'systemconfig',
            component:()=>import('@renderer/views/systemconfig.vue'),
            meta:{
                title:'系统设定'
            }
        },
        {
            path:'/update',
            name:'update',
            component:()=>import('@renderer/views/update.vue'),
            meta:{
                title:'系统升级'
            }
        
        },
        {
            path:'/changepwd',
            name:'changepwd',
            component:()=>import('@renderer/views/changepwd.vue'),
            meta:{
                title:'修改密码'
            }
        
        },
    ]

})

export default router